package designpattern.adapter.classadapter;

public class Phone {
    //充电
    public void charging(IVoltage5 iVoltage5){
        if(iVoltage5.output5()==5){
            System.out.println("可以充电");
        }else {
            System.out.println("不能充电");
        }
    }
}
